home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 104 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: interramp.com!usenet
  2. From: Brian Strelioff <pp001729@interramp.com>
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel,comp.lang.smalltalk
  4. Subject: Re: whither style
  5. Date: Mon, 01 Jan 1996 12:42:45 -0800
  6. Organization: BKS Systems, Inc.
  7. Message-ID: <30E84745.2781E494@interramp.com>
  8. References: <cmanDK7x13.5KM@netcom.com> <30e26364.2569895@news1.wolfe.net> <4bvae4$fl6@beatty.slip.netcom.com> <4c0a6d$4hs@news.irisa.fr> <dewar.820263524@schonberg>
  9. NNTP-Posting-Host: ip136.santa-ana.ca.interramp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b3 (X11; I; SunOS 4.1.3_U1 sun4m)
  14.  
  15. Robert Dewar wrote:
  16. > Jean-Marc said:
  17. >   Please note that most of the HN (Hungarian Notation) discussion
  18. >   is led in the C and C++ context only.
  19. >   In Eiffel or Smalltalk, where everything is an object,
  20. >   it would be really *stupid*
  21. >   to use such a restricted notation: types such as Integer
  22. >   or Float are nothing special
  23. >   w.r.t the language, and they are no more important than e.g.,
  24. >   linked_list_of_hash_table_of_foo.
  25. > but the point is that this is true in well written C and C++ true.
  26.  
  27. Actually the types INTEGER and FLOAT **are** "special" in Eiffel
  28. as they are 'value' rather then 'reference'. Also other areas in Eiffel
  29. are meant to allow specifying whether or not an attribute should
  30. be implemented as 'value' or 'reference'. For example,
  31.  
  32.  linked_list_of_hash_table_of_foo_1 : expanded LINKED_LIST[HASH_TABLE[FOO]];
  33.  linked_list_of_hash_table_of_foo_2 : LINKED_LIST[HASH_TABLE[FOO]];
  34.  
  35. are two entirely (well significantly at least) different fields, with
  36. linked_..._1 viewed as a value while linked_..._2 is a reference.
  37.  
  38. > I really do not think that HN is any more appropriate in C than in Eiffel
  39. > or Ada or whatever.
  40. >   the declaration of a variable type should be located close to its uses.
  41. >   And [stuff deleted] ... *any* decent
  42. >   environment would show you a variable's type only by clicking on it.
  43. >
  44. >   [ more stuff deleted ]
  45. >
  46. >   [ HN is ] thus mostly relevant to C and C++.
  47. >   So please keep the discussion in these groups
  48.  
  49. The relevance is language independent (Actually irrelevance since I am
  50. strongly opposed to HN), but may be relevant if a "decent environment"
  51. is not available.
  52.